//package com.lkk.TicketFlow.batch.job;
//
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
///**
//* 适合单体应用，不适合集群
//* 没法实时更改定时任务状态和策略
//*/
//@Component
////@EnableScheduling //开启定时任务
//public class SpringBootTestJob {
//
//     @Scheduled(cron = "0/5 * * * * ?")
//     private void test() {
//         // 增加分布式锁，解决集群问题
//         System.out.println("SpringBootTestJob TEST");
//     }
//}
